package com.atguigu.qqzone.pojo;

import java.util.List;

/**
 * @author chen
 * @create 2022-04-15-10:30
 */
public class UserBasic {
 private Integer id;
 private String loginId;
 private String nickName;
 private String pwd;
 private String headImg;

 //用户登录信息应该包含用户的详情信息方便使用(1:1)
 private UserDetail userDetail;

 //一个用户会有多个日志(1:N)
 private List<Topic> topicList;

 //一个用户会有多个好友(n:m)
 private List<UserBasic> friendList;


    public UserBasic(){}

    public UserBasic(Integer id){
     this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getHedImg() {
        return headImg;
    }

    public void setHedImg(String hedImg) {
        this.headImg = hedImg;
    }

    public UserDetail getUserDetail() {
        return userDetail;
    }

    public void setUserDetail(UserDetail userDetail) {
        this.userDetail = userDetail;
    }

    public List<Topic> getTopicList() {
        return topicList;
    }

    public void setTopicList(List<Topic> topicList) {
        this.topicList = topicList;
    }

    public List<UserBasic> getFriendList() {
        return friendList;
    }

    public void setFriendList(List<UserBasic> friendList) {
        this.friendList = friendList;
    }
}
